package com.lingz.manager.modules.base.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingz.manager.modules.base.entity.DictData;
import com.lingz.manager.modules.base.entity.File;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DictDataMapper extends BaseMapper<DictData> {

    List<DictData> findEnterPriceType(String dictType);

    List<DictData> findResponsible(String dictType);

    List<DictData> findInformationType(String dictType);

    List<DictData> findPolicyType(String dictType);

    DictData findByDictId(@Param("dictid") String dictid, @Param("value") String value);

    DictData findByDictIdTitle(@Param("dictid") String dictid, @Param("value") String value);

    List<DictData> findInformationTypeAndValue(String dictType, String value);

    List<File> selectFile(String id);


}
